package com.appspot.etao.service;

import java.util.List;

import javax.jdo.PersistenceManager;

import com.appspot.etao.jdo.PMF;
import com.appspot.etao.model.TaobaokeItemModel;

public class TaobaokeItemService extends BaseService {

	public List<TaobaokeItemModel> getTaobaokeItemList() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		
		String taobaokeItemQuery = "select from " + TaobaokeItemModel.class.getName();
		List<TaobaokeItemModel> taobaokeItemList = (List<TaobaokeItemModel>)pm.newQuery(taobaokeItemQuery).execute();
		
		pm.close();
		
		return taobaokeItemList;
	}
}
